package com.example.building_material_mannager.service.impl;

import com.example.building_material_mannager.entity.Protype;
import com.example.building_material_mannager.mapper.ProtypeMapper;
import com.example.building_material_mannager.service.ProtypeService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class ProtypeServiceImpl implements ProtypeService {
    @Resource
    ProtypeMapper protypeMapper;
    @Override
    public List<Protype> showProtype(Protype protype) {
        List<Protype> protypes=protypeMapper.showProtype(protype);
        return protypes;
    }

    @Override
    public boolean addProtype(Protype protype) {
        boolean re=protypeMapper.addProtype(protype);
        return re;
    }

    @Override
    public boolean delProtype(Integer ptid) {
        boolean re=protypeMapper.delProtype(ptid);
        return re;
    }

    @Override
    public boolean upProtype(Protype protype) {
        boolean re=protypeMapper.upProtype(protype);
        return re;
    }
}
